package com.marktotop.controller;

import com.marktotop.entity.Admin;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * SystemController - 页面跳转， 根据init.json
 *
 * @author WXLD
 * @Data 2021/6/29
 * @Since 1.0
 */
@Controller
public class SystemController {

    @RequestMapping("/")
    public String goToLogin(){
        return "login";
    }

    @RequestMapping("/index")
    public String goToIndex(){
        return "index";
    }


    @RequestMapping("/page/welcome")
    public String goToWelcome(){
        return "page/welcome-1";
    }

    @RequestMapping("/page/welcome-2")
    public String goToWelcome2(){
        return "page/welcome-2";
    }

    @RequestMapping("/page/welcome-3")
    public String goToWelcome3(){
        return "page/welcome-3";
    }

    @RequestMapping("/page/menu")
    public String goToMenu(){
        return "page/menu";
    }

    @RequestMapping("/page/setting")
    public String goToSetting(){
        return "page/setting";
    }

    @RequestMapping("/page/table")
    public String goToTable(){
        return "page/table";
    }

    @RequestMapping("/page/table/add")
    public String goToTableAdd(){
        return "page/table/add";
    }

    @RequestMapping("/page/404")
    public String goTo404Page(){
        return "page/404";
    }

    @RequestMapping("/page/form")
    public String goToForm(){
        return "page/form";
    }

    @RequestMapping("/page/form-step")
    public String goToFormStep(){
        return "page/form-step";
    }

    @RequestMapping("/page/login-1")
    public String goToLogin1(){
        return "page/login-1";
    }

    @RequestMapping("/page/login-2")
    public String goToLogin2(){
        return "page/login-2";
    }

    @RequestMapping("/page/login-3")
    public String goToLogin3(){
        return "page/login-3";
    }

    @RequestMapping("/page/button")
    public String goToButton(){
        return "page/button";
    }

    @RequestMapping("/page/layer")
    public String goToLayer(){
        return "page/layer";
    }

    @RequestMapping("/page/icon")
    public String goToIcon(){
        return "page/icon";
    }

    @RequestMapping("/page/icon-picker")
    public String goToIconPicker(){
        return "page/icon-picker";
    }

    @RequestMapping("/page/color-select")
    public String goToColorSelect(){
        return "page/color-select";
    }

    @RequestMapping("/page/table-select")
    public String goToTableSelect(){
        return "page/table-select";
    }

    @RequestMapping("/page/upload")
    public String goToUpload(){
        return "page/upload";
    }

    @RequestMapping("/page/editor")
    public String goToEditor(){
        return "page/editor";
    }

    @RequestMapping("/page/area")
    public String goToAreaSelect(){
        return "page/area";
    }

    @RequestMapping("/page/error")
    public String goToErrorPage(){
        return "page/404";
    }

}
